<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>宝贝盒子 - 热门</title>
  <style>
    body {
      font-family: 'HarmonyOS Sans', '微软雅黑', Arial, sans-serif;
      background: linear-gradient(135deg, #e0e7ff 0%, #d1d5ff 100%);
      margin: 0;
      padding: 0;
      color: #1e293b;
      min-height: 100vh;
    }
    .header {
      width: 100%;
      background: linear-gradient(90deg, #4f46e5 0%, #8b5cf6 100%);
      padding: 22px 0 12px 0;
      text-align: center;
      color: #fff;
      font-size: 2rem;
      font-weight: bold;
      letter-spacing: 2px;
      box-shadow: 0 4px 12px rgba(79, 70, 229, 0.10);
      position: sticky;
      top: 0;
      z-index: 10;
    }
    .search-bar {
      background: #fff;
      margin: 16px;
      border-radius: 20px;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      box-shadow: 0 2px 10px #a5b4fc11;
    }
    .search-icon {
      font-size: 1.2rem;
      color: #94a3b8;
      margin-right: 12px;
    }
    .search-input {
      flex: 1;
      border: none;
      outline: none;
      font-size: 1rem;
      color: #334155;
      background: transparent;
    }
    .search-input::placeholder {
      color: #94a3b8;
    }
    .category-tabs {
      display: flex;
      gap: 12px;
      padding: 0 16px 16px 16px;
      overflow-x: auto;
    }
    .category-tab {
      background: #fff;
      border: 2px solid #e2e8f0;
      border-radius: 20px;
      padding: 8px 16px;
      font-size: 0.95rem;
      color: #64748b;
      cursor: pointer;
      transition: all 0.3s;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .category-tab.active {
      background: #4f46e5;
      color: #fff;
      border-color: #4f46e5;
    }
    .hot-content {
      padding: 0 16px 20px 16px;
    }
    .section-title {
      font-size: 1.2rem;
      font-weight: 600;
      color: #334155;
      margin: 20px 0 12px 0;
      display: flex;
      align-items: center;
    }
    .section-title::before {
      content: '';
      width: 4px;
      height: 20px;
      background: linear-gradient(90deg, #4f46e5, #8b5cf6);
      border-radius: 2px;
      margin-right: 8px;
    }
    .hot-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 12px;
      margin-bottom: 20px;
    }
    .hot-item {
      background: #fff;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 2px 10px #a5b4fc11;
      transition: all 0.3s;
      cursor: pointer;
    }
    .hot-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 20px #a5b4fc22;
    }
    .hot-image {
      width: 100%;
      height: 120px;
      background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.5rem;
      color: #fff;
      position: relative;
    }
    .hot-rank {
      position: absolute;
      top: 8px;
      left: 8px;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      border-radius: 12px;
      padding: 2px 8px;
      font-size: 0.8rem;
      font-weight: bold;
    }
    .hot-info {
      padding: 12px;
    }
    .hot-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: #334155;
      margin-bottom: 4px;
      line-height: 1.3;
    }
    .hot-stats {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.8rem;
      color: #94a3b8;
    }
    .hot-likes {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .trending-list {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 2px 10px #a5b4fc11;
      overflow: hidden;
    }
    .trending-item {
      display: flex;
      align-items: center;
      padding: 16px;
      border-bottom: 1px solid #f1f5f9;
      cursor: pointer;
      transition: background 0.2s;
    }
    .trending-item:last-child {
      border-bottom: none;
    }
    .trending-item:hover {
      background: #f8fafc;
    }
    .trending-rank {
      width: 24px;
      height: 24px;
      background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 0.8rem;
      font-weight: bold;
      margin-right: 12px;
      flex-shrink: 0;
    }
    .trending-rank.top3 {
      background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }
    .trending-content {
      flex: 1;
      min-width: 0;
    }
    .trending-title {
      font-size: 0.95rem;
      font-weight: 500;
      color: #334155;
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .trending-desc {
      font-size: 0.8rem;
      color: #94a3b8;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .trending-tag {
      background: #f0f9ff;
      color: #0369a1;
      font-size: 0.7rem;
      padding: 2px 6px;
      border-radius: 8px;
      margin-left: 8px;
      flex-shrink: 0;
    }
    .bottom-nav {
      position: fixed;
      left: 0; right: 0; bottom: 0;
      height: 60px;
      background: #fff;
      border-radius: 20px 20px 0 0;
      box-shadow: 0 -2px 12px #0001;
      display: flex;
      justify-content: space-around;
      align-items: center;
      z-index: 10;
    }
    .nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      color: #888;
      font-size: 12px;
      width: 20%;
      cursor: pointer;
      transition: color 0.2s;
    }
    .nav-item.selected {
      color: #4f46e5;
      font-weight: 700;
    }
    .nav-icon {
      font-size: 22px;
      margin-bottom: 2px;
    }
    @media (max-width: 600px) {
      .header { font-size: 1.2rem; padding: 14px 0 8px 0; }
      .search-bar { margin: 12px; padding: 10px 12px; }
      .category-tabs { padding: 0 12px 12px 12px; gap: 8px; }
      .category-tab { padding: 6px 12px; font-size: 0.9rem; }
      .hot-content { padding: 0 12px 16px 12px; }
      .hot-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
      .hot-image { height: 100px; font-size: 2rem; }
      .trending-item { padding: 12px; }
      .trending-rank { width: 20px; height: 20px; font-size: 0.7rem; margin-right: 8px; }
    }
  </style>
</head>
<body>
  <div class="header">热门</div>
  
  <div class="search-bar">
    <div class="search-icon">🔍</div>
    <input type="text" class="search-input" placeholder="搜索热门内容...">
  </div>
  
  <div class="category-tabs">
    <div class="category-tab active">全部</div>
    <div class="category-tab">原子魔方</div>
    <div class="category-tab">创世熔炉</div>
    <div class="category-tab">谜域旋廊</div>
    <div class="category-tab">奇物收藏</div>
    <div class="category-tab">灵感创作</div>
  </div>
  
  <div class="hot-content">
    <div class="section-title">🔥 热门推荐</div>
    <div class="hot-grid">
      <div class="hot-item">
        <div class="hot-image">
          🧊
          <div class="hot-rank">#1</div>
        </div>
        <div class="hot-info">
          <div class="hot-title">原子魔方新玩法</div>
          <div class="hot-stats">
            <div class="hot-likes">❤️ 2.3k</div>
            <div>👁️ 15.6k</div>
          </div>
        </div>
      </div>
      
      <div class="hot-item">
        <div class="hot-image">
          ⚗️
          <div class="hot-rank">#2</div>
        </div>
        <div class="hot-info">
          <div class="hot-title">创世熔炉元素合成</div>
          <div class="hot-stats">
            <div class="hot-likes">❤️ 1.8k</div>
            <div>👁️ 12.4k</div>
          </div>
        </div>
      </div>
      
      <div class="hot-item">
        <div class="hot-image">
          🌀
          <div class="hot-rank">#3</div>
        </div>
        <div class="hot-info">
          <div class="hot-title">谜域旋廊通关攻略</div>
          <div class="hot-stats">
            <div class="hot-likes">❤️ 1.5k</div>
            <div>👁️ 9.8k</div>
          </div>
        </div>
      </div>
      
      <div class="hot-item">
        <div class="hot-image">
          🌱
          <div class="hot-rank">#4</div>
        </div>
        <div class="hot-info">
          <div class="hot-title">奇物收藏馆稀有物品</div>
          <div class="hot-stats">
            <div class="hot-likes">❤️ 1.2k</div>
            <div>👁️ 8.3k</div>
          </div>
        </div>
      </div>
      
      <div class="hot-item">
        <div class="hot-image">
          💡
          <div class="hot-rank">#5</div>
        </div>
        <div class="hot-info">
          <div class="hot-title">灵感发生器AI创作</div>
          <div class="hot-stats">
            <div class="hot-likes">❤️ 1.0k</div>
            <div>👁️ 7.1k</div>
          </div>
        </div>
      </div>
      
      <div class="hot-item">
        <div class="hot-image">
          🔗
          <div class="hot-rank">#6</div>
        </div>
        <div class="hot-info">
          <div class="hot-title">次元穿梭机同步功能</div>
          <div class="hot-stats">
            <div class="hot-likes">❤️ 890</div>
            <div>👁️ 6.2k</div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="section-title">📈 实时榜单</div>
    <div class="trending-list">
      <div class="trending-item">
        <div class="trending-rank top3">1</div>
        <div class="trending-content">
          <div class="trending-title">原子魔方桌面宠物互动玩法大揭秘</div>
          <div class="trending-desc">解锁隐藏彩蛋，获得专属宠物皮肤</div>
        </div>
        <div class="trending-tag">热门</div>
      </div>
      
      <div class="trending-item">
        <div class="trending-rank top3">2</div>
        <div class="trending-content">
          <div class="trending-title">创世熔炉128种元素合成公式大全</div>
          <div class="trending-desc">从基础元素到稀有组合，一网打尽</div>
        </div>
        <div class="trending-tag">攻略</div>
      </div>
      
      <div class="trending-item">
        <div class="trending-rank top3">3</div>
        <div class="trending-content">
          <div class="trending-title">谜域旋廊星河一笔画终极挑战</div>
          <div class="trending-desc">挑战最高难度，解锁全屏特效</div>
        </div>
        <div class="trending-tag">挑战</div>
      </div>
      
      <div class="trending-item">
        <div class="trending-rank">4</div>
        <div class="trending-content">
          <div class="trending-title">奇物收藏馆盲盒抽卡概率分析</div>
          <div class="trending-desc">科学分析抽卡机制，提高稀有物品获得率</div>
        </div>
        <div class="trending-tag">分析</div>
      </div>
      
      <div class="trending-item">
        <div class="trending-rank">5</div>
        <div class="trending-content">
          <div class="trending-title">灵感发生器AI故事创作技巧分享</div>
          <div class="trending-desc">掌握关键词技巧，创作独特故事</div>
        </div>
        <div class="trending-tag">技巧</div>
      </div>
      
      <div class="trending-item">
        <div class="trending-rank">6</div>
        <div class="trending-content">
          <div class="trending-title">次元穿梭机多设备同步设置教程</div>
          <div class="trending-desc">轻松实现跨设备数据同步</div>
        </div>
        <div class="trending-tag">教程</div>
      </div>
      
      <div class="trending-item">
        <div class="trending-rank">7</div>
        <div class="trending-content">
          <div class="trending-title">宝贝盒子隐藏彩蛋大集合</div>
          <div class="trending-desc">发现你不知道的趣味功能</div>
        </div>
        <div class="trending-tag">彩蛋</div>
      </div>
      
      <div class="trending-item">
        <div class="trending-rank">8</div>
        <div class="trending-content">
          <div class="trending-title">像素头像创作大赛优秀作品展示</div>
          <div class="trending-desc">欣赏用户创作的精彩像素艺术</div>
        </div>
        <div class="trending-tag">展示</div>
      </div>
    </div>
  </div>
  
  <div class="bottom-nav">
    <div class="nav-item">
      <div class="nav-icon">🏠</div>
      首页
    </div>
    <div class="nav-item selected">
      <div class="nav-icon">🔥</div>
      热门
    </div>
    <div class="nav-item">
      <div class="nav-icon">⏰</div>
      历史
    </div>
    <div class="nav-item">
      <div class="nav-icon">💬</div>
      消息
    </div>
    <div class="nav-item">
      <div class="nav-icon">👤</div>
      我的
    </div>
  </div>
  
  <script>
    // 分类标签切换
    document.querySelectorAll('.category-tab').forEach(tab => {
      tab.addEventListener('click', function() {
        document.querySelectorAll('.category-tab').forEach(t => t.classList.remove('active'));
        this.classList.add('active');
      });
    });
    
    // 搜索功能
    document.querySelector('.search-input').addEventListener('input', function(e) {
      const searchTerm = e.target.value.toLowerCase();
      console.log('搜索:', searchTerm);
    });
    
    // 热门项目点击
    document.querySelectorAll('.hot-item').forEach(item => {
      item.addEventListener('click', function() {
        const title = this.querySelector('.hot-title').textContent;
        console.log('点击热门项目:', title);
      });
    });
    
    // 榜单项目点击
    document.querySelectorAll('.trending-item').forEach(item => {
      item.addEventListener('click', function() {
        const title = this.querySelector('.trending-title').textContent;
        console.log('点击榜单项目:', title);
      });
    });
  </script>
</body>
</html> 